Skip to content

Deploy every merge to main automatically (server and iPhone app) - #3

Merged
ehonis merged 1 commit into
mainfrom
sync/private-main
Oct 14, 2026
Merged

ehonis merged 1 commit into
mainfrom
sync/private-main

Conversation

@ehonis

@ehonis ehonis commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Published from the private repository by oss-sync.

  • Deploy every merge to main automatically (server and iPhone app)

2 files changed, 222 insertions(+)

Published from the private repository by oss-sync.

- Deploy every merge to main automatically (server and iPhone app)

 2 files changed, 222 insertions(+)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T03:31:52.156063Z 68d9c4f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ehonis
ehonis merged commit 5150293 into main Oct 14, 2026
2 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 68d9c4fc01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

run: |
sleep 2
for i in $(seq 1 60); do
if curl -fsS --max-time 2 "$DEPLOY_HEALTH_URL" > /dev/null; then echo "Up after ${i}s"; exit 0; fi

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Authenticate the default health check

On every normal session-authenticated install, the default unauthenticated curl receives 401 from /api/health, because only the static public files bypass the auth gate. Consequently every otherwise-successful deploy waits a minute and rolls back; either use an authenticated request or expose a dedicated public liveness endpoint.

AGENTS.md reference: AGENTS.md:L133-L135

Useful? React with 👍 / 👎.

Comment on lines +62 to +63
git fetch --quiet origin main
git merge --ff-only --quiet origin/main

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Deploy only the SHA whose CI run succeeded

When commit B is pushed while the successful CI run for commit A is completing, this fetch and merge advances the live checkout to the current origin/main, including B even if B's CI is still running or later fails. The workflow_run path should deploy github.event.workflow_run.head_sha rather than the moving branch tip; manual dispatch can continue to use the current tip.

Useful? React with 👍 / 👎.

if [ "$live" = 0 ]; then echo "build=true" >> "$GITHUB_OUTPUT"; echo "Native code changed: no build has runtime $rv yet."; else echo "A build has runtime $rv."; fi

- name: Publish the update
run: npx eas-cli update --channel production --platform ios --non-interactive --message "$(git log -1 --format=%s)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pass the required environment to EAS Update

This project uses Expo SDK 57, for which the --environment flag is required by eas update; therefore every mobile deployment fails at this step before publishing the OTA update or starting the subsequent App Store build. Add --environment production to match the production channel and build profile, as required by Expo's EAS Update documentation.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant